package com.aliothservice.catfish.product.data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.data.annotation.Id;

public class VehicleSpec {
	
	public Map<String, Object> toMap() {
		Map<String, Object> map = new HashMap<String, Object>();
		
		map.put("keySpec", this.getKeySpec());
		map.put("lengthSpec", this.getLengthSpec());
		map.put("temperatureSpec", this.getTemperatureSpec());
		map.put("vehicles", this.getVehicles());
		map.put("stock", this.getStock().toString());
		map.put("fullLoadWeight", this.getFullLoadWeight());
		map.put("fullLoadMass", this.getFullLoadMass());
		if (null != this.getDeviceSN()) {
			map.put("deviceSN", this.getDeviceSN());
		}
		
		return map;
	}
	
	@Id
	private String id;
	
	// who owns this vehicle spec
	private String userId;
	
	private String keySpec;
	private String lengthSpec;
	private List<String> temperatureSpec;
	private Integer fullLoadWeight;
	private Integer fullLoadMass;
	
	private String individual;
	private String enterprise;
	
	private String manInChargeName;
	private String manInChargePhoneNumber;
	
	// vehicle license plate list
	private List<String> vehicles;
	
	private Integer stock;
	
	private String deviceSN;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getKeySpec() {
		return keySpec;
	}

	public void setKeySpec(String keySpec) {
		this.keySpec = keySpec;
	}

	public String getLengthSpec() {
		return lengthSpec;
	}

	public void setLengthSpec(String lengthSpec) {
		this.lengthSpec = lengthSpec;
	}

	public List<String> getTemperatureSpec() {
		return temperatureSpec;
	}

	public void setTemperatureSpec(List<String> temperatureSpec) {
		this.temperatureSpec = temperatureSpec;
	}

	public List<String> getVehicles() {
		return vehicles;
	}

	public void setVehicles(List<String> vehicles) {
		this.vehicles = vehicles;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getFullLoadWeight() {
		return fullLoadWeight;
	}

	public void setFullLoadWeight(Integer fullLoadWeight) {
		this.fullLoadWeight = fullLoadWeight;
	}

	public Integer getFullLoadMass() {
		return fullLoadMass;
	}

	public void setFullLoadMass(Integer fullLoadMass) {
		this.fullLoadMass = fullLoadMass;
	}

	public String getIndividual() {
		return individual;
	}

	public void setIndividual(String individual) {
		this.individual = individual;
	}

	public String getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(String enterprise) {
		this.enterprise = enterprise;
	}

	public String getManInChargeName() {
		return manInChargeName;
	}

	public void setManInChargeName(String manInChargeName) {
		this.manInChargeName = manInChargeName;
	}

	public String getManInChargePhoneNumber() {
		return manInChargePhoneNumber;
	}

	public void setManInChargePhoneNumber(String manInChargePhoneNumber) {
		this.manInChargePhoneNumber = manInChargePhoneNumber;
	}

	public String getDeviceSN() {
		return deviceSN;
	}

	public void setDeviceSN(String deviceSN) {
		this.deviceSN = deviceSN;
	}

}
